<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/index.xhtml">
        <ui:define name="title"/>
        <ui:define name="body">

            <h:form>
                <p:panel id="panel" header="#{bundle.ViewTblPersonaTitle}" style="margin-bottom:5px;">
                    <h:panelGroup id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                    </h:panelGroup>

                    <h:panelGrid columns="2">
                        <h:outputText value="#{bundle.ViewTblPersonaLabel_documento}"/>
                        <h:outputText value="#{tblPersonaController.selected.documento}" title="#{bundle.ViewTblPersonaTitle_documento}"/>
                        <h:outputText value="#{bundle.ViewTblPersonaLabel_nombre}"/>
                        <h:outputText value="#{tblPersonaController.selected.nombre}" title="#{bundle.ViewTblPersonaTitle_nombre}"/>
                        <h:outputText value="#{bundle.ViewTblPersonaLabel_apellido1}"/>
                        <h:outputText value="#{tblPersonaController.selected.apellido1}" title="#{bundle.ViewTblPersonaTitle_apellido1}"/>
                        <h:outputText value="#{bundle.ViewTblPersonaLabel_apellido2}"/>
                        <h:outputText value="#{tblPersonaController.selected.apellido2}" title="#{bundle.ViewTblPersonaTitle_apellido2}"/>
                        <h:outputText value="#{bundle.ViewTblPersonaLabel_email}"/>
                        <h:outputText value="#{tblPersonaController.selected.email}" title="#{bundle.ViewTblPersonaTitle_email}"/>
                        <h:outputText value="#{bundle.ViewTblPersonaLabel_telefono}"/>
                        <h:outputText value="#{tblPersonaController.selected.telefono}" title="#{bundle.ViewTblPersonaTitle_telefono}"/>
                        <h:outputText value="#{bundle.ViewTblPersonaLabel_celular}"/>
                        <h:outputText value="#{tblPersonaController.selected.celular}" title="#{bundle.ViewTblPersonaTitle_celular}"/>
                        <h:outputText value="#{bundle.ViewTblPersonaLabel_direccion}"/>
                        <h:outputText value="#{tblPersonaController.selected.direccion}" title="#{bundle.ViewTblPersonaTitle_direccion}"/>
                        
                    </h:panelGrid>

                    <p:commandButton action="#{tblPersonaController.prepareCreate}" value="#{bundle.ViewTblPersonaCreateLink}" />
                    <p:commandButton action="#{tblPersonaController.prepareList}" value="#{bundle.ViewTblPersonaShowAllLink}"/>

                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
